package com.zw.pm.module.board.multi;


import com.zw.pm.gen.entity.Factory;
import com.zw.pm.module.config.factory.FactoryDao;
import com.zw.pm.module.project.build.ProjectDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 项目 服务层
 *
 * @Author: China.sgl
 * @Date: 2019/9/16 09:11
 */
@Service
public class MultiService {

    @Autowired
    private ProjectDao projectDao;
    @Autowired
    private FactoryDao factoryDao;

    /**
     * 查询生产厂
     *
     * @return list
     */
    public List<Factory> findFactories() {
        return factoryDao.findIdNotIn(new Integer[]{4});
    }

    /**
     * 根据条件查询项目
     *
     * @param multiModel 查询条件
     * @return 项目列表数据
     */
    public List<MultiModel> findProject(MultiModel multiModel){
        return projectDao.findMulti(multiModel);
    }

}
